//
//  SSFirstPageDiscountMainCollectionViewcell.m
//  Travel_World
//
//  Created by dlios on 15/10/13.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "SSFirstPageDiscountMainCollectionViewcell.h"

@implementation SSFirstPageDiscountMainCollectionViewcell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height / 2)];
        [self.contentView addSubview:self.myImageView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height * 0.55, self.contentView.frame.size.width, self.contentView.frame.size.height * 0.2)];
        self.titleLabel.numberOfLines = 2;
        self.titleLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.titleLabel];
       
        self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height * 0.75, self.contentView.frame.size.width, self.contentView.frame.size.height * 0.1)];
        self.timeLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.timeLabel];
        
        
        self.lastminute_des = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height * 0.9, self.contentView.frame.size.width / 2, self.contentView.frame.size.height * 0.1)];
        self.lastminute_des.font = [UIFont systemFontOfSize:12];
        self.lastminute_des.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:self.lastminute_des];
        
        self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width / 2, self.contentView.frame.size.height * 0.9, self.contentView.frame.size.width / 2, self.contentView.frame.size.height * 0.1)];
        self.priceLabel.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:self.priceLabel];
        
    }
    
    return self;
}


@end
